# 集合

# 相当于只有键的字典

# 定义

s1 = {"张三", "李四", "王五"}     # 只有键


# 添加

s1.add("赵六")
print(s1)

s2 = {1,2,3,4,5,6}

s3 = s1 | s2        # 并集
print(s3)


# 随机删除一个元素
s3.pop()


# 快速去重
print()
st = "i乱播第五百铺户ubabpwfbavbwv awcvaipuwfhapuwhpuqhwpuidqpufepiuqbawfiupbauwfhbapiwubfqiuhwfipqugeiuvfbasncap["
print(st, len(st))

s4 = set(st)
print(s4, len(s4))

print(''.join(s4))

